<?php

use think\migration\Seeder;

class Role extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run(): void
    {

        $this->insert('role', $this->RoleData());

    }

    protected function RoleData()
    {

        return [
            [
                'role_name' => '超级管理员',
                'rule' => "*",
            ],
            [
                'role_name' => '管理员',
                'rule' => "1,2,3,4,5,6,7,8,9,10,15,16,19,17,18,20,21",
            ]
        ];

    }

}